<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<div>
	<table id="treeGrid" toolbar="#treeGridTools" class="easyui-treegrid" url="" rownumbers="" idField="" treeField="" fit="true">
		<thead>
			<tr>
				<th field="name" width="100px" align="center">栏目名称</th>
				<th field="rank" width="100px" align="center">排序</th>
			</tr>
		</thead>
	</table>
	<div id="treeGridTools">
		<a href="#" class="easyui-linkbutton" iconCls="icon-add" plain="true" onclick="javascript:aBtnClk()">增加</a>
		<a href="#" class="easyui-linkbutton" iconCls="icon-edit" plain="true" onclick="javascript:eBtnClk()">修改</a>
		<a href="#" class="easyui-linkbutton" iconCls="icon-cancel" plain="true" onclick="javascript:dBtnClk()">删除</a>
	</div>
	<div id="channel_dl" style="width:500px;height:400px;padding:3px;overflow: hidden;">
		<form id="channel_form" action="channel_add.do" method="post">
		<table width="100%" height="100%" style="text-align: left;padding: 0;margin: 0;" >
			<tr height="30">
				<td width="60px">
					<span>栏目名称:</span>
				</td>
				<td colspan="3">
					<input class="easyui-validatebox" required="true" validType="maxLength[50]" 
						missingMessage="名称不能为空" type="text" name="channel.name" style="width: 100%">
				</td>
			</tr>
			<tr height="30">
				<td width="60px">
					<span>发布状态:</span>
				</td>
				<td width="100px">
					<input type="checkbox" name="channel.state" value="1">
				</td>
				<td width="60px">
					<span>文章类型:</span>
				</td>
				<td>
					<input id="channel_mold" name="channel.mold" style="width: 200px;">
				</td>
			</tr>
			<tr style="vertical-align: top;">
				<td>
					<span>栏目备注:</span>
				</td>
				<td colspan="3">
					<div style="width: 100%;height: 100%">
					<textarea id="description" class="easyui-validatebox" validType="maxLength[250]" 
						missingMessage="内容不能为空" name="channel.description" style="width: 100%;height: 250px;" ></textarea>
					</div>
				</td>
			</tr>
		</table>
		<input type="hidden" name="channel.id">
		</form>
	</div>
	<script type="text/javascript" src="js/admin/runcat.easyui.channel.js"></script>
</div>